package com.yc.edu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author YC
 * @version 1.0
 * CREATE TABLE static_info
 * (
 * id 		BIGINT(20) AUTO_INCREMENT COMMENT 'id 主键',
 * post_id 	VARCHAR(32) NOT NULL COMMENT '帖子id[外键]',
 * views		INT NOT NULL COMMENT '浏览量',
 * collect		INT NOT NULL COMMENT '收藏数',
 * zan		int not null comment '点赞数',
 * comments	int not null comment '回复数',
 * PRIMARY KEY (id)
 * )CHARSET=utf8mb4 COMMENT '帖子状态表';
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("static_info")
public class PostStatic {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("post_id")
    private String postId;

    // 浏览量
    private Integer views;

    private Integer zan;

    private Integer collect;

    // 回复数
    private Integer comments;
}
